package com.gr.menuw.menu;

import com.gr.menuw.menu.item.IMenuItem;

/**
 * All Menus must implement this interface.
 * @author Graham Rhodes 30 Dec 2010 15:51:09
 */
public interface IMenu {

    /**
     * @return if the menu is top level
     */
    boolean isOnTop();

    /**
     * Adds a menu item to the menu
     * @param item
     * @return the menu added to
     */
    public IMenu addItem(IMenuItem item);

    /**
     * Removes a menu item from the menu
     * @param item
     * @return the menu added to
     */
    public IMenu removeItem(IMenuItem item);

}
